package com.example.lottery_system.dao.Mapper;

import com.example.lottery_system.dao.DataObject.ActivityPrizeDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ActivityPrizeMapper {
    Integer insert(@Param("items") List<ActivityPrizeDO> activityPrizeDoList);


    ActivityPrizeDO selectByPrizeId(@Param("activityId") Long activityId, @Param("prizeId") Long prizeId);

    Integer updatePrizeStatus(@Param("activityId") Long activityId,@Param("prizeId") Long prizeId,@Param("status") String targetPrizeStatus);

    List<ActivityPrizeDO> selectByActivityId(@Param("activityId") Long activityId);

    Integer deleteByActivityId(@Param("activityId") Long activityId);
}
